<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<title>我的二维码</title>
	<link rel="stylesheet" href="<c:url value="/static/wx/css/style.css"/>" />
    <script type="text/javascript" src="<c:url value="/static/wx/js/lib/rem.js"/>"></script>
    <script type="text/javascript" src="<c:url value="/static/wx/js/lib/jquery-3.3.1.min.js"/>"></script>
    <script type="text/javascript" src="<c:url value="/static/wx/js/lib/qrcode.min.js"/>"></script>
</head>
<body class="b464e5b">
        <div id="wrap">
            <div class="wrap_code">
                <div class="confirm">
                    
                    <div class="header_mine_s mt10" id="goAccountSetting">
                        <div class="common header_wrap">
                            <div>
                                <c:choose>
		                            <c:when test="${userVo.userImg != '' && userVo.userImg != null }">
		                                <img id="header_img" src="${userVo.userImg}" />
		                            </c:when>
		                            <c:otherwise>
		                                <img id="header_img" src="<c:url value="/static/wx/img/people.png"/>" />
		                            </c:otherwise>
		                        </c:choose>
                            </div>
                            <div class="header_text">
                                <!--用户昵称-->
                                <div class="header_name f14 c333 tl">${userVo.contacts }</div>
                                <!--用户手机号-->
                                <div class="header_tel f14 c666 tl">${userVo.telephone }</div>
                            </div>
                        </div>
                    </div>
                    
                    <div  class="code_s" id="qrcode"></div>
                    
                    <div class="f14 c333 tc">扫一扫上面的二维码图案，立即回收</div>
                </div>
            </div>
        </div>
        <input type="hidden" id="userId"  value="${userVo.bId }"/> 
        <script type="text/javascript">
            var userId = $("#userId").val();
            // 设置参数方式
            var qrcode = new QRCode(document.getElementById("qrcode"), {});
            
            qrcode.makeCode(userId);//此处为用户id
            
        </script>
</body>
</html>